import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {View,TextInput,TouchableOpacity,Text,StyleSheet} from "react-native";
import StyledTextInput from "../common/TextInput";

class Login extends Component {
    render() {
        return (
            <View>
                <TextInput placeholder="用户名"/>
                <StyledTextInput/>
                <TouchableOpacity onPress={this.cancel}>
                    <Text>取消</Text>
                </TouchableOpacity>
                <TouchableOpacity>
                    <Text>登录</Text>
                </TouchableOpacity>
            </View>
        );
    }

    cancel = ()=>{
        this.props.navigator.dismissModal({
            animationType: 'slide-down' // 'none' / 'slide-down' , dismiss animation for the modal (optional, default 'slide-down')
        });
    }
}

Login.propTypes = {

};

export default Login;